#include "Math.h"

Math::Math()
{
}

qreal Math::distance(QPoint p1,QPoint p2)
{
    qreal dx = p2.x() - p1.x();
    qreal dy = p2.y() - p1.y();

    return qSqrt( dx*dx + dy*dy );
}

qreal Math::distance(QPointF p1,QPointF p2)
{
    qreal dx = p2.x() - p1.x();
    qreal dy = p2.y() - p1.y();

    return qSqrt( dx*dx + dy*dy );
}
